<?php
require_once '../application/library/db/gcDaoFactory.php';
require_once '../application/constant/daoConfig.php';

/**
* 商品详细画面用的Service
* 商品管理
* @version   0.1
* @author    Suda
*/
class goods_services_goodsDetailsService {
    private $objDaoFactory;

    public function __construct() {
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    public function pbGetGoodsInfo($strGoodsNo) {
        $objGoodsDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_GOODS_DAO);
        $arrGoodsInfo = $objGoodsDao->pbGetGoodsInfo($strGoodsNo);
        return $arrGoodsInfo;
    }

    public function pbGetSupplierInfo($strGoodsNo) {
        $objGoodsDao = $this->objDaoFactory->createDao(daoConfig::T_EC_M_GOODS_REALATED_SUPPLIER_DAO);
        $arrSupplierInfo = $objGoodsDao->pbGetSupplierInfo($strGoodsNo);
        return $arrSupplierInfo;
    }
}